module PostsHelper
  def check_post_vote(post)
    if session[:post_vote].nil?
      false
    else
      session[:post_vote].include?(post.id)
    end
  end
end
